//
//  CZMessageViewController.swift
//  GZWeibo009
//
//  Created by gzxzmac on 16/3/19.
//  Copyright © 2016年 gzxzmac. All rights reserved.
//

import UIKit

class CZMessageViewController: CZBaseTableViewController {
    
    let items = ["a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a"]

    override func viewDidLoad() {
        super.viewDidLoad()

//        visitorView.setupVisitor("visitordiscover_image_message", message: "登录后，别人评论你的微博，发给你的消息，都会在这里收到通知")
        
        tableView.registerClass(UITableViewCell.self, forCellReuseIdentifier: "id")
        tableView.addSubview(pullDownRefreshControl)
        pullDownRefreshControl.pulldownRefreshHandler = { () -> () in
            
        }
    }

    // MARK: - Table view data source
    override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        // #warning Incomplete implementation, return the number of rows
        return items.count
    }
    
    override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        let cell = tableView.dequeueReusableCellWithIdentifier("id")!
        
        cell.textLabel?.text = items[indexPath.row]
        
        return cell
    }

    // MARK: - 懒加载
    private lazy var pullDownRefreshControl: PulldownRefreshControl = PulldownRefreshControl(frame: CGRect(x: 10, y: 10, width: 10, height: 10))

}
